package com.tzsp.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tzsp.reggie.commons.dto.DishDto;
import com.tzsp.reggie.domain.Dish;

import java.util.List;

public interface DishService extends IService<Dish>  {

    //新增菜品，同时插入菜品对应的口味数据，需要操作2张表dish和dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    //根据id获取菜品和菜品的口味，展示在修改菜品页面
    public DishDto getByIdWithFlavor(Long id);

    //修改菜品和菜品口味
    public void updateWithFlavor(DishDto dishDto);

    //根据ids删除菜品和菜品口味
    public void deleteWithFlavor(List<Long> ids);
}
